﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AiFrame.InterfaceLib.MVVM
{
    /// <summary>
    /// Specifies a data list view.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IDataListView<T>
    {
        /// <summary>
        /// Returns the item which is
        /// currently selected.
        /// </summary>
        /// <returns></returns>
        int GetSelectedIndex();

        /// <summary>
        /// Returns all data items.
        /// </summary>
        IList<T> DataItems { get; }
    }
}
